#include "RackServer.h"
#include <iostream>
#include <fstream>
#include <string>

using namespace std;


RackServer::RackServer()
{
    serialN="";
    vendor="";
    model="";
    purchaseDate="";
    voidWarrantyDate="";
    telAssistance="";
    unitsNeed=0;
    rackRif="";
    ipAddress="127.0.0.1";
    macAddress="00:00:00:00:00:00";
	isDHCP='x';
    isISCSI='x';
    capacity=0.0;
    raidType=0;
}

RackServer::~RackServer()
{
    //destructor
}

void RackServer::setSerialN(string serial)
{
    serialN=serial;
}

string RackServer::getSerialN()
{
    return serialN;
}

void RackServer::setVendor(string manifacturer)
{
    vendor=manifacturer;
}

string RackServer::getVendor()
{
    return vendor;
}

void RackServer::setModel(string product)
{
    model=product;

}

string RackServer::getModel()
{
    return model;
}

void RackServer::setPurchaseDate(string date)
{
    purchaseDate=date;
}

string RackServer::getPurchaseDate()
{
    return purchaseDate;
}

void RackServer::setTelAssistance(string numAssistance)
{
    telAssistance=numAssistance;
}

string RackServer::getTelAssistance()
{
    return telAssistance;
}

void RackServer::setUnitsNeed(int rackUnits)
{
    unitsNeed=rackUnits;
}

int RackServer::getUnitsNeed()
{
    return unitsNeed;
}

void RackServer::setRackRif(string rackSerial)
{
    rackRif=rackSerial;
}

string RackServer::getRackRif()
{
    return rackRif;
}

void RackServer::setIPAddress(string IP)
{
    ipAddress=IP;
}

string RackServer::getIPAddress()
{
    return ipAddress;
}

void RackServer::setMacAddress(string mac)
{
    macAddress=mac;
}

string RackServer::getMacAdrress()
{
    return macAddress;
}

void RackServer::setIsDHCP(char DHCP)
{
    isDHCP=DHCP;
}

char RackServer::getIsDHCP()
{
    return isDHCP;
}

void RackServer::setIsISCSI(char ISCSI)
{
    isISCSI=ISCSI;
}

char RackServer::getIsISCSI()
{
    return isISCSI;
}

void RackServer::setCapacity(double size)
{
    capacity=size;
}

double RackServer::getCapacity()
{
    return capacity;
}

void RackServer::setRAIDType(int type)
{
    raidType=type;
}

int RackServer::getRAIDType()
{
    return raidType;
}